import socket

client = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
client.connect(("127.0.0.1", 8888))
print("客户端已启动，已完成连接")
print("请输入要发送的内容：")
client.send(input().encode("utf-8"))
data = client.recv(1024)
print("接收到服务端的响应：", data.decode("utf-8"))
client.close()
